﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo518
{
    class Hero
    {
        
        //2、根据图片，写出四个英雄和他们的父类，需要有输出数据的方法，需要有构造方法。
        public string HeroName { get; set; }
        public string UserName { get; set; }
        public string HeroInfo { get; set; }
        public int Aattack { get; set; }
        public int Defense { get; set; }
        public int Speed { get; set; }

        public Hero(string heroName, string userName, string heroInfo, int aattack, int defense, int speed)
        {
            HeroName = heroName;
            UserName = userName;
            HeroInfo = heroInfo;
            Aattack = aattack;
            Defense = defense;
            Speed = speed;
        }

        public void show() {
            Console.WriteLine("英雄名称{0}，昵称{1}，英雄介绍{2}，攻击{3}，防御{4}，速度{5}",this.HeroName, this.UserName, this.HeroInfo, this.Aattack, this.Defense, this.Speed);
        }
    }
}
